import vector

a = 2.0
A = vector.VECTOR()
A.x = 1.0
A.y = 2.0
B = vector.VECTOR()
B.x = 1.0
B.y = 0.0
B.parent = A
Norm = vector.double_ptr()
vector.multi_add(a, A, B, Norm)
print "B: x %.1f y %.1f Norm %.2f" % (B.x, B.y, Norm.value())
